package com.ruoyi.books.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.books.mapper.BooksMoresMapper;
import com.ruoyi.books.domain.BooksMores;
import com.ruoyi.books.service.IBooksMoresService;

/**
 * 非遗习俗Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-02
 */
@Service
public class BooksMoresServiceImpl implements IBooksMoresService 
{
    @Autowired
    private BooksMoresMapper booksMoresMapper;

    /**
     * 查询非遗习俗
     * 
     * @param moresId 非遗习俗主键
     * @return 非遗习俗
     */
    @Override
    public BooksMores selectBooksMoresByMoresId(Long moresId)
    {
        return booksMoresMapper.selectBooksMoresByMoresId(moresId);
    }

    /**
     * 查询非遗习俗列表
     * 
     * @param booksMores 非遗习俗
     * @return 非遗习俗
     */
    @Override
    public List<BooksMores> selectBooksMoresList(BooksMores booksMores)
    {
        return booksMoresMapper.selectBooksMoresList(booksMores);
    }

    /**
     * 新增非遗习俗
     * 
     * @param booksMores 非遗习俗
     * @return 结果
     */
    @Override
    public int insertBooksMores(BooksMores booksMores)
    {
        return booksMoresMapper.insertBooksMores(booksMores);
    }

    /**
     * 修改非遗习俗
     * 
     * @param booksMores 非遗习俗
     * @return 结果
     */
    @Override
    public int updateBooksMores(BooksMores booksMores)
    {
        return booksMoresMapper.updateBooksMores(booksMores);
    }

    /**
     * 批量删除非遗习俗
     * 
     * @param moresIds 需要删除的非遗习俗主键
     * @return 结果
     */
    @Override
    public int deleteBooksMoresByMoresIds(Long[] moresIds)
    {
        return booksMoresMapper.deleteBooksMoresByMoresIds(moresIds);
    }

    /**
     * 删除非遗习俗信息
     * 
     * @param moresId 非遗习俗主键
     * @return 结果
     */
    @Override
    public int deleteBooksMoresByMoresId(Long moresId)
    {
        return booksMoresMapper.deleteBooksMoresByMoresId(moresId);
    }
}
